package com.jy.datapipeline.importserver.service.strategy.impl;

import com.jy.datapipeline.importserver.entity.ImportRule;
import com.jy.datapipeline.importserver.service.ImportModeService;
import com.jy.datapipeline.importserver.service.strategy.ImportModeServiceStrategy;
import org.springframework.stereotype.Component;

/**
 * @类名 ImportTaskServiceStrategyImpl
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/9/1 15:59
 * @版本 1.0
 */
@Component
public class ImportModeServiceStrategyImpl implements ImportModeServiceStrategy {

    private ImportModeService importModeService;

    @Override
    public ImportModeServiceStrategy setImportModeService(ImportModeService importModeService) {
        this.importModeService = importModeService;
        return this;
    }

    @Override
    public void loadMode(ImportRule importRule) {
        importModeService.executionImportModeService(importRule);
    }
}
